<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%	

response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 
response.setHeader("Pragma","no-cache"); //HTTP 1.0 
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server

		UserInfo userInfo = null;
		String accnbr = "";
		if(session.getAttribute("userInfo")!=null){
			userInfo = (UserInfo)session.getAttribute("userInfo");
			accnbr = userInfo.getAccnbr();
		}

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="java.util.List"%>
<%@page import="com.doone.telmarket.domain.UserInfo"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title>增值业务超市</title>
    <link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
    <link href="${pageContext.request.contextPath}/css/style_link.css" rel="stylesheet" type="text/css" />
    <link href="${pageContext.request.contextPath}/css/tab.css" rel="stylesheet" type="text/css" />
    <SCRIPT src="${pageContext.request.contextPath}/js/tab.js" type=text/javascript></SCRIPT>
        <script src="${pageContext.request.contextPath}/js/jquery.js"
	type="text/javascript"></script>
<script
	src="${pageContext.request.contextPath}/js/jquery.ui.draggable.js"
	type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/jquery.alerts.js"
	type="text/javascript"></script>
<link href="${pageContext.request.contextPath}/css/jquery.alerts.css"
	rel="stylesheet" type="text/css" media="screen" />
	
	
	<script type="text/javascript">
		window.onload = function(){
			var context = document.getElementById("contextPath").value;
			$.ajax({
			    url: context+'/web/queryHeadServiceType',
			    type: 'POST',
			    timeout: 15000,
			    error: function(){
			    	jAlert('获取数据失败','消息');
			    },
			    success: function(msg){
			    	$("#typeTab").append(msg);
			    }
			});

			$.ajax({
			    url: context+'/web/getHotBusiByType',
			    type: 'POST',
			    data:'type=H',
			    timeout: 15000,
			    error: function(){
			    	jAlert('获取数据失败','消息');
			    },
			    success: function(msg){
			    	if(msg=="获取数据失败"){
			    		$("#headHotBusi").append("获取数据失败");
					}else{
						eval('var obj='+msg);
						var str = "";
						for(var i=0;i<obj.length;i++){
							if(obj.length==1){
								str += "<a href='"+context+obj[i].pageUrl+"' target='_parent'>"+obj[i].productName+"</a>";
							}else{
								if(i==0){
									str += "<a href='"+context+obj[i].pageUrl+"' target='_parent'>"+obj[i].productName+"</a>&nbsp;&nbsp;|";
								}else if(i=obj.length-1){
									str += "&nbsp;&nbsp;<a href='"+context+obj[i].pageUrl+"' target='_parent'>"+obj[i].productName+"</a>";
								}else{
									str += "&nbsp;&nbsp;<a href='"+context+obj[i].pageUrl+"' target='_parent'>"+obj[i].productName+"</a>&nbsp;&nbsp;|";
								}
							}
						}
						$("#headHotBusi").append(str);
					}
			    }
			});
		}
	</script>
</head>

<body><input type="hidden" id="contextPath" value="${pageContext.request.contextPath}" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="${pageContext.request.contextPath}/images/top/top_01.gif">
  <tr>
    <td width="23%" align="left" valign="top"><a href="http://sc.ct10000.com" target="_blank"><img src="${pageContext.request.contextPath}/images/top/top_logo1.gif" width="254" height="38" border="0" /></a></td>
    <td width="63%" align="center" valign="top"><table width="100%" height="39" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="38" align="center">&nbsp;</td>
      </tr>
    </table></td>
    <td width="14%" height="43" align="right" valign="top"><img src="${pageContext.request.contextPath}/images/top/top_logo2.gif" width="154" height="38" /></td>
  </tr>
</table>


<table width="986" border="0" cellspacing="0" cellpadding="0" style="background:url(${pageContext.request.contextPath}/images/top/bg2.jpg) top bottom repeat-x">
  <tr>
    <td height="91"><table width="986" height="91" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="91" style="background:url(${pageContext.request.contextPath}/images/top/bg1.jpg) top left no-repeat;"><table width="986" height="91" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="420" align="left" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="420" height="91">
              <param name="movie" value="${pageContext.request.contextPath}/flash/logo.swf" />
              <param name="quality" value="high" />
              <param name="wmode" value="transparent" />
              <embed src="Flash/logo.swf" width="420" height="91" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
            </object></td>
            <td width="333" align="right" valign="bottom"><table width="323" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:2px;">
              <tr>
                <td width="6"><img src="${pageContext.request.contextPath}/images/top/lm_01.gif" width="6" height="28" /></td>
                <td width="310" align="center" background="${pageContext.request.contextPath}/images/top/lm_02.gif" style="padding-top:4px;"><a href="my_order.jsp" target="_top">我的增值业务</a>&nbsp;|&nbsp;<a href="${pageContext.request.contextPath}/web/queryKeep" target="_top">我的收藏</a>&nbsp;|&nbsp;<a href="list_4.htm" target="_top">精彩促销</a>&nbsp;&nbsp;<a href="#"></a>&nbsp;&nbsp;<a href="#"></a></td>
                <td width="6"><img src="${pageContext.request.contextPath}/images/top/lm_03.gif" width="6" height="28" /></td>
              </tr>
            </table></td>
            <td width="233" height="91" align="left" valign="bottom" style="background:url(${pageContext.request.contextPath}/images/top/bg3.jpg) top right no-repeat;"><table width="216" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:2px; margin-left:8px;">
              <tr>
                <td width="6"><img src="${pageContext.request.contextPath}/images/top/lm_01.gif" width="6" height="28" /></td>
                <td width="260" align="center" background="${pageContext.request.contextPath}/images/top/lm_02.gif" style="padding-top:4px;"><a href="http://133.37.60.19" target="_parent">回到网厅</a>&nbsp;|&nbsp;<a href="http://133.37.60.19/view/order/order_net_selectCity.jsp?mode=%D2%B5%CE%F1%B0%EC%C0%ED&amp;url=L3ZpZXcvQWZmYWlySW50cm8vaW5kZXguanNw" target="_parent">业务介绍</a>&nbsp;|&nbsp;&nbsp;<a href="http://133.37.60.19/view/new_order/index.jsp?menucode=menu_07" target="_parent">服务专区</a></td>
                <td width="6"><img src="${pageContext.request.contextPath}/images/top/lm_03.gif" width="6" height="28" /></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="986" height="37" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="22"><img src="${pageContext.request.contextPath}/images/top/dh_01.jpg" width="22" height="40" /></td>
    <td width="958" background="${pageContext.request.contextPath}/images/top/dh_02.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr align="right">
        <td width="42%" height="40" id="typeTab">
        
        
        </td>
		<td width="42%"><table>
		<tr><td align="right"><%if(userInfo != null){%><font color="#FFFFFF">尊敬的<%=accnbr %>客户，您已登录！</font><%}%></td></tr>
		</table></td>
		<%if(userInfo == null){%>		
        <td width="16%"><table width="155" border="0" cellpadding="0" cellspacing="0" background="${pageContext.request.contextPath}/images/top/bnt_.gif">
          <tr>
            <td height="25"><img src="${pageContext.request.contextPath}/images/top/bnt_.gif" width="155" height="25" border="0" usemap="#Map" /></td>
            </tr>
        </table></td>
		<%}else{%>
		<td width="16%"><table width="87" border="0" cellpadding="0" cellspacing="0" background="${pageContext.request.contextPath}/images/top/bnt_3.gif">
          <tr>
            <td height="25" width="87" align="center"><a href="${pageContext.request.contextPath}/web/exit" target="_top">我要退出</a></td>
            </tr>
        </table></td>		
		<%}%>
      </tr>
    </table></td>
    <td width="10"><img src="${pageContext.request.contextPath}/images/top/dh_03.jpg" width="10" height="40" /></td>
  </tr>
</table>
<table width="986" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="22"><img src="${pageContext.request.contextPath}/images/top/dh_04.jpg" width="22" height="37" /></td>
    <td width="488" align="left" background="${pageContext.request.contextPath}/images/top/dh_06.jpg">热门业务：&nbsp;<font class="Huise_1266" color="#666666" id="headHotBusi"></font></td>
    <td width="454" align="right" background="${pageContext.request.contextPath}/images/top/dh_06.jpg" style="color:red">温馨提示：增值业务超市处于试运营阶段，部份功能尚未开通。
</td>
    <td width="22"><img src="${pageContext.request.contextPath}/images/top/dh_05.jpg" width="22" height="37" /></td>
  </tr>
</table>
<table width="986" border="0" cellspacing="0" cellpadding="0" style="margin-top:8px; margin-bottom:8px;">
  <tr>
    <td><img src="${pageContext.request.contextPath}/images/bar_ad/pic_1.gif" width="986" height="40" /></td>
  </tr>
</table>

<map name="Map" id="Map"><area shape="rect" coords="84,3,144,22" href="<%=application.getInitParameter("registUrl") %>" target="_blank" />
<area shape="rect" coords="12,3,69,21" href="<%=application.getInitParameter("loginUrl") %>" target="_top" />
</map></body>
</html>